package com.dldata.devtools30.entity;

import jakarta.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "devt_model_metadata_type" )
public class DevtModelMetadataTypeEntity {
    private String id;
    private Integer xh;
    private String flmc;
    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true, length = 64)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    @Basic
    @Column(name = "xh", nullable = true, insertable = true, updatable = true)
    public Integer getXh() {
        return xh;
    }

    public void setXh(Integer xh) {
        this.xh = xh;
    }
    @Basic
    @Column(name = "flmc", nullable = true, insertable = true, updatable = true,length = 1024)
    public String getFlmc() {
        return flmc;
    }

    public void setFlmc(String flmc) {
        this.flmc = flmc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtModelMetadataTypeEntity that = (DevtModelMetadataTypeEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(xh, that.xh) &&
                Objects.equals(flmc, that.flmc);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, xh, flmc);
    }
}
